#!/usr/local/bin/python3.2

import os
import sys
import shutil
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),'..','..','..','tools', 'database'))

import refreshmybatis

config = refreshmybatis.Config()

config.app_shortname = 'Ivicar'
config.database_properties_file = './src/main/resources/ivicar.test.properties'
config.depot_relative_root = '../../..'
config.db_file_root = '.'
config.resource_file_root = None
config.namespace_root = 'cn.com.carsmart.ws'
config.submodels = {}
config.notrelation = [] # object with this ending will be ignored during many-to-many relation table naming generation
config.ignoredmodels = None
config.associations = None
config.skipMapperXmlGeneration = False 

refreshmybatis.refresh(config)